// FIELDS
function SDX_Fields()
{
 this.RootObject = null ; // Must be set after this object initiliaze
 this.Fields=new Array();
 this.Field=Field;
 this.InsertField=InsertField;
 this.Initialize=Initialize;
 this.VisibleFields=null;
 // FIELD
 function Field(_RootObject, _ID, _Name)
 {
  this.RootObject = _RootObject ;
  this.ID = _ID ;
  this.Name = _Name ;
  this.DefaultValue = null ;
  this.DataSource = null ;
  this.GetDisplayHTML = GetDisplayHTML ;
  this.GetEditHTML = GetEditHTML ;
  this.GetEvalObjectString = GetEvalObjectString ;
  this.SetValue = SetValue ;
  this.Onload = Onload ;
  function GetDisplayHTML(_Value)
  {
   var html = _Value ;
   return html ;
  }
  function GetEditHTML(_Cell)
  {
   var html = "<input type='textbox' value='" + _Cell.Value + "' />";
   return html ;
  }
  function GetEvalObjectString()
  {
   return this.ParentObject.GetEvalObjectString() + "_Fields" + ID ;
  }
  function SetValue(_Cell, _Value)
  {
   return _Cell.SetValue(_Value) ;
  }
  function Onload(_Cell)
  {
   try
   {
    document.getElementById(_Cell.HTMLID).children[0].focus()
    document.getElementById(_Cell.HTMLID).children[0].select()
   }
   catch(exception)
   {
   }
  }
 }
 function InsertField(_Name)
 {
  this.Fields[this.Fields.length] = new Field(this.RootObject, this.Fields.length, _Name)
  return this.Fields[this.Fields.length-1];
 }
 function Initialize()
 {
 }
}       